//
//  UINavigationBar+style.m
//  MyApp
//
//  Created by liaowentao on 17/3/29.
//  Copyright © 2017年 Haochuang. All rights reserved.
//

#import "UINavigationBar+style.h"

@implementation UINavigationBar (style)
//static char overlayKey;
//
//- (UIView *)overlay
//{    return objc_getAssociatedObject(self, &overlayKey);
//}
//
//- (void)setOverlay:(UIView *)overlay{
//    objc_setAssociatedObject(self, &overlayKey, overlay, OBJC_ASSOCIATION_RETAIN_NONATOMIC);
//}
//
//- (void)lt_setBackgroundColor:(UIColor *)backgroundColor
//{
//    if (!self.overlay) {
//        [self setBackgroundImage:[[UIImage alloc] init] forBarMetrics:UIBarMetricsDefault];
//        [self setShadowImage:[[UIImage alloc] init]];
//        self.overlay = [[UIView alloc] initWithFrame:CGRectMake(0, -20, [UIScreen mainScreen].bounds.size.width, 64)];
//        self.overlay.userInteractionEnabled = NO;
//        [self insertSubview:self.overlay atIndex:0];
//    }
//    self.overlay.backgroundColor = backgroundColor;
//}
@end
